package api;

public class Command {

	String name;
	String[] params;
	private String description;
	
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Command(String name, String[] params, String desc)
	{
		this.name = name;
		this.params = params;
		this.description = desc;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String[] getParams() {
		return params;
	}
	public void setParams(String[] params) {
		this.params = params;
	}
	
	public String toString()
	{
		String rt = getName() + "(";
		if(getParams() != null && getParams().length > 0)
		{
			for(String s : getParams())
					rt += " " + s + " ,";
			
			rt = rt.substring(0, rt.length() - 1);
		}
		rt += ")";
		return rt;
	}
}
